package com.wyl.niupi.framework.util.swagger;

import io.swagger.v3.oas.annotations.media.Schema;

import java.util.List;

/**
 * @author 吴宇亮 on 2020/11/24 10:42
 */
@Schema
public class SwaggerPeopleBean {

    private String id;
    private String name;
    private Integer age;
    private List<SwaggerCarBean> carBeanList;

    @Schema(description = "主键", example = "1", required = true)
    public String getId() {
        return id;
    }
    @Schema(description = "姓名", example = "张三")
    public String getName() {
        return name;
    }
    @Schema(description = "年龄", example = "30")
    public Integer getAge() {
        return age;
    }
    @Schema(description = "车子列表")
    public List<SwaggerCarBean> getCarBeanList() {
        return carBeanList;
    }
}
